$(function() {
	var businessId = parseQueryString().businessId;
	var type = parseQueryString().type;
	var userType = parseQueryString().userType;
	var code = parseQueryString().code;
	$("#left").load("../common/gover-left.html");
	
	$(".ystep1").loadStep({
		size: "small",
		color: "green",
		steps: [{
				title: "事项选择"
			},
			{
				title: "服务选择"
			},
			{
				title: "信息录入"
			},
			{
				title: "寄件选择"
			},
			{
				title: "取件选择"
			},
			{
				title: "提交成功"
			}
		]
	});
	$(".ystep1").setStep(2);
	my_vue = new Vue({
		el: '#vue_info',
		data: {

		},
		methods: {
			chooseServiceType: function(object) {
				if(object == 1) {
					window.location = "selfHelpFormInput.html?businessId=" + businessId + "&type=" + type + "&code=" + code+ "&userType=" + userType;
				} else if(object == 2) {
					window.location = "face2faceWaiting.html?businessId=" + businessId + "&type=" + type + "&code=" + code+ "&userType=" + userType;;
				}
			},
			exitProcess: function(op) {
				if(op == 'index') {
					$.showConfirm({
						'title': '',
						'content': '是否退出办理？',
						"showClose": false,
						"sureLabel": "取消",
						"cancelLabel": "退出办理",
						'cancel': this.toIndex
					});
				} else if(op == 'scanner') {
					$.showConfirm({
						'title': '',
						'content': '是否退出办理？',
						"showClose": false,
						"sureLabel": "取消",
						"cancelLabel": "退出办理",
						'cancel': this.toScanner
					});
				}
			},
			toIndex: function() {
				window.location = "index.html"
			},
			toScanner: function() {
				window.location = "scannerIndex.html"
			},
			exitAttendTo: function() {
				$.openDialog({
					'title': '',
					"showClose": false,
					'width': 824,
					'height': 460,
					'url': 'selfHelpExitChoose.html'
				});
			}

		},
		ready: function() {
			//初始化获得总页面数和列表数据
			
		}
	});
});